
export default function throttle(run: (...args: any[]) => void, delay = 800) {
    let lastTime = 0;
    return (...args: any[]) => {
        const now = Date.now();
        if (now - lastTime < lastTime) {
            return;
        }
        run(...args);
    }
}

